package com.shchekoldin.juliet.json.entities.person;

import com.shchekoldin.juliet.json.annotation.ToJson;
import com.shchekoldin.juliet.json.entities.ToJsonProfileType;

public class BasePerson implements IPerson {

    @ToJson(profiles = { ToJsonProfileType.DEFAULT, ToJsonProfileType.COMMENT })
    private String firstName;

    @ToJson(profiles = { ToJsonProfileType.DEFAULT, ToJsonProfileType.COMMENT })
    private String lastName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    @ToJson(profiles = { ToJsonProfileType.DEFAULT })
    @Override
    public String getFullName() {
        return firstName + " " + lastName;
    }

}
